widget: Don't grab focus when can-focus == false
authorBenjamin Otte <otte@redhat.com>
Tue, 15 Oct 2019 14:30:46 +0000 (16:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 15 Oct 2019 14:33:05 +0000 (16:33 +0200)
commit4eb077979f931f68dc20299ee1640e020df6707b
tree5f9e7d2506393f865fcd4c7bb5b7bd029f727d69
parent9c1b1eb89474cd868df99b6967e828882d79e9db
widget: Don't grab focus when can-focus == false

... inside the default vfunc.

Instead, walk the children until we find the first widget that can be
focused. If no child can be focused, return FALSE from grab_focus.
gtk/gtkwidget.c